# 递归添加 aio 所有cpp文件
file(GLOB_RECURSE object_storage_index_srcs *.cpp)

add_library(obs_index_obj
    OBJECT
    ${object_storage_index_srcs}
)

target_include_directories(obs_index_obj
    PRIVATE
    ${OBS_ROOT_PATH}/src
    ${OBS_ROOT_PATH}/src/common
    ${OBS_ROOT_PATH}/src/common/constant
    ${OBS_ROOT_PATH}/src/obs_service/obs_common
    ${OBS_ROOT_PATH}/src/utils
    ${OBS_SERVICE_ROOT_DIR}
    ${PLUGIN_FRAMEWORK_PATH}/inc
    ${PLUGIN_FRAMEWORK_PATH}/inc/thrift_interface
    ${PLUGIN_FRAMEWORK_PATH}/inc/rpc
    ${PLUGIN_FRAMEWORK_PATH}/inc/common
    ${PLUGIN_FRAMEWORK_PATH}/inc/job
    ${PLUGIN_FRAMEWORK_PATH}/inc/job_mgr
    ${PLUGIN_FRAMEWORK_PATH}/inc/rpc/certificateservice
    ${OPENSRC_THRIFT_INC_PATH}
    ${OPEN_SRC_PATH}/jsoncpp_rel/include
    ${OPEN_SRC_PATH}/boost_rel/include
    ${OPEN_SRC_PATH}/curl_rel/include
    ${MODULE_PLATFORM_PATH}/SecureCLib_rel/include
    ${MODULE_ROOT_PATH}/src
    ${MODULE_ROOT_PATH}/src/parser
    ${MODULE_ROOT_PATH}/src/threadpool
    ${PLUGIN_SCANNER_PATH}/include
    ${PLUGIN_SCANNER_PATH}/include/common
    ${PLUGIN_SCANNER_PATH}/include/checkpoint
    ${PLUGIN_SCANNER_PATH}/include/filter
    ${PLUGIN_SCANNER_PATH}/include/interface
    ${PLUGIN_SCANNER_PATH}/include/model
    ${PLUGIN_SCANNER_PATH}/include/service
    ${PLUGIN_SCANNER_PATH}/include/statistics
    ${PLUGIN_SCANNER_PATH}/include/utils
    ${PLUGIN_BACKUP_PATH}/src/model
    ${PLUGIN_BACKUP_PATH}/src/service
    ${PLUGIN_BACKUP_PATH}/src/common
    ${DME_PATH}/framework/inc
)

target_link_libraries(obs_index_obj
    PRIVATE
    common_dep
)